#ifndef INVALIDHIGHLIGHTER_H
#define INVALIDHIGHLIGHTER_H

#include <QSyntaxHighlighter>
#include <QString>
#include <QTextCharFormat>
class InvalidHighlighter : public QSyntaxHighlighter
{
public:
    InvalidHighlighter(QString InvalidStr="",QString validStr="",QTextDocument * parent =NULL);
    void setInvalidPattern(QString);
    void highlightBlock(const QString &text);
    void setValidPattern(QString);
private:
    QRegExp m_invalidPattern;
    QRegExp m_validPattern;
    QTextCharFormat m_invalidFormat;
    QTextCharFormat m_validFormat;
};

#endif // INVALIDHIGHLIGHTER_H
